package com.frank.stock4j.tusharepro.bean;

import com.frank.stock4j.tusharepro.BaseBean;
import com.frank.stock4j.tusharepro.http.BaseRequestParam;

/**
* 描述：获取南华指数每日行情，指数行情也可以通过
* @author: codesmith
**/
public interface IndexDailyBean extends BaseBean {
    String API_NAME = "index_daily";
    
    interface Fields {
    String ts_code = "ts_code";    //TS指数代码
    String trade_date = "trade_date";    //交易日
    String close = "close";    //收盘点位
    String open = "open";    //开盘点位
    String high = "high";    //最高点位
    String low = "low";    //最低点位
    String pre_close = "pre_close";    //昨日收盘点
    String change = "change";    //涨跌点
    String pct_chg = "pct_chg";    //涨跌幅
    String vol = "vol";    //成交量（手）
    String amount = "amount";    //成交额（千元）
    }
    
    interface Params {
        ts_code ts_code = new ts_code();
        /*
        * 指数代码（南华期货指数以 .NH 结尾，具体请参考本文最下方）
        */
        class ts_code extends BaseRequestParam {
            { key = "ts_code"; }
        }
        trade_date trade_date = new trade_date();
        /*
        * 交易日期 （日期格式：YYYYMMDD，下同）
        */
        class trade_date extends BaseRequestParam {
            { key = "trade_date"; }
        }
        start_date start_date = new start_date();
        /*
        * 开始日期
        */
        class start_date extends BaseRequestParam {
            { key = "start_date"; }
        }
        end_date end_date = new end_date();
        /*
        * 结束日期
        */
        class end_date extends BaseRequestParam {
            { key = "end_date"; }
        }
    }
}